﻿/*======================================================================
== Copyright : BlueCurve (c)
== Licence   : Gnu/GPL v2.x
== Author    : Teddy Albina
== Email     : bluecurveteam@gmail.com
== Web site  : http://www.codeplex.com/BlueCurve
========================================================================*/
using System.Runtime.InteropServices;
using System;

namespace BlueCurve.MemoryCache
{
    /// <summary>
    /// Structure définissant une clef
    /// </summary>
    /// <typeparam name="Tvalue">Clef</typeparam>
    /// <typeparam name="Tid">Id</typeparam>
    [Serializable]
    [ComVisible(false)]
    public struct ValueFields<Tvalue, Tid>
    {
        private Tvalue _value;
        public Tvalue Value
        {
            get { return _value; }
            set { _value = value; }
        }

        private Tid _id;
        public Tid Id
        {
            get { return _id; }
            set { _id = value; }
        }

        internal ValueFields(Tvalue val, Tid pri)
        {
            this._value = val;
            this._id = pri;
        }
    }
}